<?php
include_once("CustomerClass.php");
include_once("OrderClass.php");
$i = $_GET['id'];
$CustomerObj = new Customer();
$CustomerObj->id = $i;
$CustomerObj->Name = 'CustomerName' . $i ;
$CustomerObj->Surname = 'CustomerSurname' . $i;
$CustomerObj->Address = "CustomerStreet" . $i;
for($i = 0;$i < 10 ;$i++){
	$OrderObj = new Order();
	$OrderObj->number = uniqid();
	$OrderObj->date = "2011/01/01";
	array_push($CustomerObj->ordersList,$OrderObj);
}

print(json_encode($CustomerObj));

?>